const port = process.env.port || process.env.npm_config_port || 8089 // 端口
module.exports = {
	NODE_ENV: '"production"',
  ENV_CONFIG: '"dep"',
  // BASE_API: '"https://ip.ipark.host/backend/admin"'
  devServer: {
    port: port,
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        target: process.env.VUE_APP_BASE_URL,
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      }
    },
    disableHostCheck: true
  },
}
